<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户信息表</title>
    <link th:href="@{/layui/css/layui.css}">
    <script th:src="@{/layui/layui.js}"></script>
</head>
<body>

<table class="layui-hide" id="table" lay-filter="test"></table>

</body>
<script th:inline="javascript">
    var prefix = "/user"
    layui.use(function () {
        var layer = layui.layer,
            laypage = layui.laypage,
            laydate = layui.laydate,
            table = layui.table,
            dropdown = layui.dropdown

        table.render({
            elem: '#table',
            height: '90%',
            url: prefix+"/list",
            page: true,
            data:{
                object: {
                    birthday: $("#birthday").val(),
                    id: 1
                },
                pageNum: pageNum,
                pageSize: pageSize
            },
            cols: [
                {field:'name',title:'姓名'},
                {field:'phone',title:'电话'},
                {field:'address',title:'地址'},
                {field:'birthday',title:'生日'}
            ]
        })
    })
</script>
</html>
